from bs4 import BeautifulSoup
import requests

baidu=requests.get('http://baidu.com').content
soup=BeautifulSoup(baidu,'html.parser')
links=soup.findAll('a')

for link in links:
    print(link.string)










